<ui:composition template="template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:t="http://myfaces.apache.org/tomahawk">
    <ui:define name="customs">
    </ui:define>
    <ui:define name="title">
    </ui:define>
    <ui:define name="main-content">
        <h:form id="homeForm">
            <h2><span><h:outputText value="Redirigiendo..."/></span></h2>
            <br/>
            <h:commandButton id="bt_redirect" action="#{registrationBean.init}" value="Ir a registro"/>
        </h:form>
        <script>
            function redirect()
            {
                document.getElementById("homeForm:bt_redirect").click();
            }
            redirect();
        </script>
    </ui:define>
</ui:composition>
